<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<script type="text/jscript" >
function getUrlParam(name) {
	var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
	var r = window.location.search.substr(1).match(reg);  //匹配目标参数
	if (r != null) return unescape(r[2]); return null; //返回参数值
}
function getAllPara(){
	document.getElementById("s_peer_sid").value = getUrlParam("peer_sid");
	document.getElementById("s_type").value = getUrlParam("type");
	document.getElementById("s_sid").value = getUrlParam("sid");
}
</script>
<body>
<form action="/upload/" enctype="multipart/form-data" method ="post">
<input type="file" name = "sendfile" >
<input type="hidden" name="act"  value="up">
<input type="hidden" name="lang"  value="">
<input type="hidden" name="type" id="s_type">
<input type="hidden" name="sid"  id="s_sid">
<input type="hidden" name="peer_sid"  id="s_peer_sid" >
<input type=submit name="btnG" value="上传" onclick="getAllPara()">
<input type=reset name="btnR" value="清除" onclick="getAllPara()">
</form>
</body>
</html>
